// 导入请求方式
import http from '../service/http.js'

// 预警参数设置
export function parameter() {
  return http.post(`/zeeenv/monitor/parameter`);
};

// 在伊可多选1-5个纳雍历史测点下拉列表
export function getSDZlist() {
  return http.get(`/zeeenv/monitor/list3`);
}
// 业主可多选1-5个纳雍历史测点下拉列表
export function getSDZlist2() {
  return http.get(`/zeeenv/monitor/list2`);
}
// 开关量
export function getSDZlist3() {
  return http.get(`/zeeenv/monitor/list1`);
}
// 历史曲线
export function history(params) {
  return http.post(`/zeeenv/monitor/history`, params);
}
// 历史曲线0
export function history0(params) {
  return http.post(`/zeeenv/monitor/history0`, params);
}
// 参数设置
export function setParameter(arr) {
  return http.post(`/zeeenv/monitor/setParameter`, arr);
}
export function searchSdz(sdz) {
  console.log(sdz);
  return http.get(`/zeeenv/monitor/list/${sdz}`);
}
// 首页历史
export function history1(params) {
  return http.post(`/zeeenv/monitor/history1`, params);
}

export function history2(params) {
  return http.post(`/zeeenv/monitor/history2`, params);
}